import multiprocessing as mp


class Process:
    def __init__(self):
        self._processes = []

    def _run(self):
        pass

    def _add_process(self, *args):
        self._processes.append(mp.Process(target=self._run, args=args, daemon=True))

    def _start(self):
        [process.start() for process in self._processes]

    def kill(self):
        [process.kill() for process in self._processes]

    def terminate(self):
        [process.terminate() for process in self._processes]
